<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #box{
      width: 200px;
      height: 200px;
      background-color: #bbe147;
      margin-top: 100px;
    }
  </style>
</head>
<body>
  <div id="app">
    <button @click="isShow=!isShow">
      {{isShow?'隐藏':'显示'}}
    </button>
    <div id="box" v-show="isShow"></div>
    
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const { createApp } = Vue;
    const  app = createApp({
      data(){
        return {
          isShow: true
        }
      }
    })

    app.mount('#app')
  </script>
</body>
</html>